package mapper;

import com.root.health.bean.MedicineInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MedicineMapper {
    public void medicine(String medName, String medEffect, String taboo, String indate,String dosage,String specification,long userId);
    //添加药品信息
    public MedicineInfo medByname(String medName,long userId);
    //以药品名查询药品信息
    public MedicineInfo medById(long medId);
    //以药品id查询药品信息
    public List<MedicineInfo> selectMed(long userId);
    //查询该用户所有药品信息
    public void medDelete(long medId);
    public void medUpdate(String medName, String medEffect, String taboo, String indate,String dosage,String specification,long medId);
}
